package engine.graphics.vfx
{
	import away3d.core.managers.*;
	
	import engine.core.*;
	import engine.graphics.away3d.*;
	import engine.loaders.*;
	import engine.graphics.sprite.*;
	
	public class RxWorldSpriteFX extends RxWorldBaseFX
	{
		private var m_sprite:RxSprite3D;
		private var m_resources:RxSprite3DResources;
		private static var s_pool:RxObjectPool = null;
		
		public function RxWorldSpriteFX(sprite:RxSprite3D, resources:RxSprite3DResources)
		{
			this.InitSpriteFX(sprite, resources);
		}
		
		private function InitSpriteFX(sprite:RxSprite3D, resources:RxSprite3DResources) : void
		{
			this.m_sprite = sprite;
			this.m_resources = resources;
		}
		
		public static function CreatePool(initSize:uint, growSize:uint) : void
		{
			var allocFunc:* = function () : Object
			{
				return new RxWorldSpriteFX(null, null);
			};
			
			s_pool = new RxObjectPool(allocFunc, null, initSize, growSize, RxWorldSpriteFX);
		}
	}
}